package com.itheima.多线程.基础;

public class Demo {
    //开一个线程死循环输出"helloworld"
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            while (true) {
                System.out.println("helloworld");
            }
        });
        t1.setDaemon(true);
        t1.start();
        for (int i = 0; i < 10; i++) {
            System.out.println("javaEE");
        }
    }
}
